]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Update animation of attached modals (again)
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Aug 2012 13:23:35 +0000 (15:23 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Aug 2012 07:52:17 +0000 (09:52 +0200)
The fade animation we started using after centering attached
modal dialogs didn't work too well. So after going back to the
scale animation, adjust it to scale from the center rather
than the top, which works quite well.

https://bugzilla.gnome.org/show_bug.cgi?id=681601

js/ui/windowManager.js

index c535fef4dace0903d80a5f7ba5fdac20c5335dba..9d438a9f6b50fa87471ad55cfeaa301406a92a7c 100644 (file)
@@ -301,6 +301,7 @@ const WindowManager = new Lang.Class({
             this._checkDimming(actor.get_meta_window().get_transient_for());
             if (this._shouldAnimate()) {
                 actor.set_scale(1.0, 0.0);
+                actor.scale_gravity = Clutter.Gravity.CENTER;
                 actor.show();
                 this._mapping.push(actor);
 
@@ -377,6 +378,7 @@ const WindowManager = new Lang.Class({
             }
 
             actor.set_scale(1.0, 1.0);
+            actor.scale_gravity = Clutter.Gravity.CENTER;
             actor.show();
             this._destroying.push(actor);